package com.kmzx.one.project.entity;

import java.util.Date;

/**
 * @Project one
 * @Author: carol
 * @Date: 2020/5/22-10:35
 */
public class UserLogger {


    private String id;

    private String userId;

    private String requestUrl;

    private String method;

    private String address;

    private String deviceType;

    private String userAgent;

    private Date loginTime;

    private int position;

    private String unionId;

    public String getId() {
        return id;
    }

    public UserLogger setId(String id) {
        this.id = id;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public UserLogger setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public UserLogger setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
        return this;
    }

    public String getMethod() {
        return method;
    }

    public UserLogger setMethod(String method) {
        this.method = method;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public UserLogger setAddress(String address) {
        this.address = address;
        return this;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public UserLogger setDeviceType(String deviceType) {
        this.deviceType = deviceType;
        return this;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public UserLogger setUserAgent(String userAgent) {
        this.userAgent = userAgent;
        return this;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public UserLogger setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
        return this;
    }

    public int getPosition() {
        return position;
    }

    public UserLogger setPosition(int position) {
        this.position = position;
        return this;
    }

    public String getUnionId() {
        return unionId;
    }

    public UserLogger setUnionId(String unionId) {
        this.unionId = unionId;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("UserLogger{");
        sb.append("userId='").append(userId).append('\'');
        sb.append(", requestUrl='").append(requestUrl).append('\'');
        sb.append(", method='").append(method).append('\'');
        sb.append(", address='").append(address).append('\'');
        sb.append(", loginTime=").append(loginTime);
        sb.append('}');
        return sb.toString();
    }
}
